<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page import="com.alpha.bom.*" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Navigation</title>


</head>
<body>

	<c:set var="user" value="${sessionScope.user}"/>
	<c:choose>
	<c:when test="${user.userType eq 'Professor'}">
		<div class="navigation">
			<ul class="nav nav-list" >
			
				<h4>Main</h4>
				<li><a href="HomeServlet"><i class="icon-home"></i> Home </a></li>
				<li><a href="LogoutServlet"><i class="icon-off"></i> Logout </a></li>
				<br>
				
				<h4>Data Admin</h4>
				<li><a href="ExamsAdminServlet"><i class="icon icon-book"></i> Exams </a></li>
				<li><a href="StudentsAdminServlet"><i class="icon icon-users"></i> Examinees </a></li>
				<li><a href="CategoriesAdmin.jsp"><i class="icon icon-compose"></i> Categories </a></li>
				<li><a href="QuestionsAdminServlet"><i class="icon icon-edit"></i> Questions </a></li>
				<br>
				
				<h4>Reports</h4>
				<li><a href="AllResultsServlet"><i class="icon icon-document"></i> All Results </a></li>
				<li><a href="ExamResultsServlet"><i class="icon icon-document"></i> Results by Exam </a></li>
				<li><a href="ExamineeResultsServlet"><i class="icon icon-document"></i> Results by Examinee </a></li>
				<li> </li>
				<li> </li>
				<li> </li>
				<li> </li>
				<li> </li>
				<li> </li>
				<li> </li>
			</ul>
		</div>
		
	</c:when>
	<c:when test="${user.userType eq 'Student'}">
		<div class="navigation" style="padding:8px 0;">
			<ul class="nav nav-list">
			
				<h4>Main</h4>
				<li><a href="HomeServlet"><i class="icon-home"></i> Home </a></li>
				<li><a href="LogoutServlet"><i class="icon-off"></i> Logout </a></li>
				<br>
				
				<h4>Exams</h4>
				<li><a href="MyExamServlet"><i class="icon icon-book"></i> My Exams </a></li>
				<li><a href="PracticeExamServlet"><i class="icon icon-edit"></i> Take Practice Exam </a></li>
				<br>
				
				<h4>Reports</h4>
				<li><a href="ExamineeReportServlet"><i class="icon icon-document"></i> Exams Results </a></li>
				
			</ul>
		</div>

	</c:when>
	</c:choose>

</body>
</html>